﻿@model EditRemoteClientViewModel

<h1>@RenderTitleSegments(T["Create Remote Client"])</h1>

<div asp-validation-summary="ModelOnly"></div>
<form asp-action="Create" method="post">

    <div class="form-group" asp-validation-class-for="ClientName">
        <label asp-for="ClientName">@T["Client Name"]</label>
        <span asp-validation-for="ClientName" class="text-danger">@T["The client name is required."]</span>
        <input asp-for="ClientName" class="form-control" />
    </div>
        
    <div class="form-group" asp-validation-class-for="ApiKey">
        <label asp-for="ApiKey">@T["Api Key"]</label>
        <span asp-validation-for="ApiKey" class="text-danger">@T["The api key is required."]</span>
        <input asp-for="ApiKey" type="password" class="form-control" />
    </div>

    <fieldset>
        <div class="form-group">
            <button class="btn btn-primary" type="submit">@T["Create"]</button>
            <a class="btn btn-secondary" asp-route-action="Index">@T["Cancel"]</a>
        </div>
    </fieldset>
</form>
